--- 降低 属性A,N%, 转化为B ,m%
---@class BuffEffect800008100:BaseBuffEffect
BuffEffect800008100 = ClientFight.CreateClass("BuffEffect800008100",ClientFight.BaseBuffEffect)
local t = BuffEffect800008100
---@param fight Fight
---@param buff FighterBuff
function t:action(fight, buff, ...)
    local target = buff.target;
    local buffEffectValue = buff.buffBean.f_BuffEffectValue;
    local fightAttr = FighterAttributeManager.getFightAttr(target, buffEffectValue[1]);
    local reduce = Utils.calcRatio(fightAttr, buffEffectValue[2]);
    local add = Utils.calcRatio(reduce, buffEffectValue[4]);
    SkillRoleMgr.savePathFile("[" + fight.frame + "][EFFECT]Fighter " + buff.target.fighterId + " Buff"
            + buff.modelId + " 降低 属性 "+buffEffectValue[1]+" : "+ reduce+" 转化为" + buffEffectValue[2] +" : "+add);
    buff.attributes.attributes = {}
    buff.attributes.attributes[buffEffectValue[1]] = -reduce;
    buff.attributes.attributes[buffEffectValue[3]] = add;

     ClientFight.BaseBuffEffect.action(self,fight, buff, ...);
    return IBuffEffect.SUCCESS_ATTRI_HAS_CHANGE;
end
t.New()